package org.hamster.multidropbox.main.services
{
	import org.hamster.common.services.ImageResourceCacheService;
	import org.hamster.common.services.RemoteResourceCacheService;

	public class ImageCacheService extends ImageResourceCacheService
	{
		private static var _instance:ImageCacheService;
		public static function get instance():ImageCacheService
		{
			if (_instance == null) {
				_instance = new ImageCacheService();
			}
			return _instance;
		}
		
		public function ImageCacheService()
		{
		}
		
		public function getImage(url:String):*
		{
			var imgByteArray:* = this.getItem(url);
			if (imgByteArray == null) {
				return url;
			} else {
				return imgByteArray;
			}
		}
			
		
	}
}